// components/zhuanqu-content/index.js
import {
  HHRZQ_IMG,
  DZZQ_IMG,
  ZSZQ_IMG,
  HDZQ_IMG
} from "../../service/image_service"
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    hhrzq_img: HHRZQ_IMG,
    // dzzq_img: DZZQ_IMG,
    dzzq_img: HDZQ_IMG,
    zszq_img: ZSZQ_IMG
  },

  /**
   * 组件的方法列表
   */
  methods: {
    pushToPage(e) {
      let type = e.currentTarget.dataset.type;
      let navUrl = ""
      if (type == 'par') {
        navUrl = "/featurePackage/pages/partnerArea/parnerArea"
      } else if (type == 'cus') {
        navUrl = "/featurePackage/pages/customArea/customArea"
      } else if (type == 'ac') {
        navUrl = '/featurePackage/pages/worksArea/worksArea'
      }
      else {
        navUrl = "/featurePackage/pages/knowledgeArea/knowledgeArea"
      }
      wx.navigateTo({
        url: navUrl,
      })
    }
  }
})
